<?php
/**
 * Signalsy Platform Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@wheemplay.com so we can send you a copy immediately.
 *
 * @category   Signalsy
 * @package    Signalsy Core
 * @copyright  Copyright (c) 2009 AGPsource Team
 * @license    http://signalsy.com/license/ New BSD License
 */

 include_once('/inc/app/IconnectManager.php');
 

class Test_connectManager implements IconnectManager
{
	
	/**
	 * Return array of URL and associate signals list
	 * @static
	 * @public
	 * @return Array 
	 */
	static public function exportRouting()
	{
		return Array(
			//тестирование системы
			'test/ok' => array('test_signal_OK'), 
			'test/failure' => array('test_signal_Failure'),
			'' => array('test_index_page')		
		);
	}
	
	/**
	 * Return array of signals and its connecting function or object method 
	 **/
	static public function exportSignals()
	{
		/**
		Structure:
			signal - string
			array:
					priority (lower -> be called first)
					array (if calling static or object method) or string (calling function)
		
		**/
		return Array(
		    'test_index_page' => array(1000 => array('Test_SignalsyTesting','indexPage')),
		    'sys_error_404' => array(1000 => array('Test_SignalsyTesting','sys_error404')),
			'test_signal_OK' => array(1000 => array('Test_SignalsyTesting','test_SignalOK')),
			'test_signal_Failure' => array(1000 => array('Test_SignalsyTesting', 'test_SignalFailure'))		
		);
	}
	
}